<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib uri="/struts-tags" prefix="s" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title>My JSP 'qiandaoTable.jsp' starting page</title>
    
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->
	<sx:head/>
  </head>
  <style type="text/css">
	#qiandao{
		border:solid 3px #add9c0;
		width:900px;
		text-align: center;
	}
	#qiandao td,th{
		border:solid #add9c0;
		border-width:0px 1px 1px 0px;
		padding:10px 0px;
	}
	a{
		color: #817E7E;
	}
	a:LINK{
		text-decoration: none;
	}
	a:HOVER {
		color:#0F1215;
    }
    a:active{
		color: red;
	}
	</style>
  <body>
  <br /><br />
    <table id="qiandao">
    	<tr>
    		<th>签到员工</th>
    		<th>签卡时间</th>
    		<th>签卡标记</th>
    		<th>签卡备注</th>
    		<th>所属部门</th>
    	</tr>
    	
    	<s:iterator value="%{#session.pb.list }" var="li">
 
    	<tr>
    		<td><s:property value="%{#li.userinfo.username}" /></td>
    		<td><s:property value="%{#li.signtime}" /></td>
    		<td><s:property value="%{#li.signtag}" /></td>
    		<td><s:property value="%{#li.signdesc}" /></td>
    		<td><s:property value="%{#li.userinfo.departid}" /></td>
    	</tr>
    	
    	</s:iterator>
    </table>
    <br />
    <p>
    	当前<s:property value="%{#session.pb.currentPage}" />页
    	总共<s:property value="%{#session.pb.totalPage}" />页
    	&nbsp;&nbsp;&nbsp;
    	<sx:a targets="div2" href="dosppage?type=2&page=1">首页</sx:a>
    	&nbsp;&nbsp;
    	<sx:a targets="div2" href="dosppage?type=2&page=%{#session.pb.currentPage-1}">上一页</sx:a>
    	&nbsp;&nbsp;
    	<sx:a targets="div2" href="dosppage?type=2&page=%{#session.pb.currentPage+1}">下一页</sx:a>
    	&nbsp;&nbsp;
    	<sx:a targets="div2" href="dosppage?type=2&page=%{#session.pb.totalPage}">末页</sx:a>
    </p>
  </body>
</html>
